/**
 * @file crtsurfdata1.cpp
 * @author your name (you@domain.com)
 * @brief 
 * @version 0.1
 * @date 2024-04-19
 * 
 * @copyright Copyright (c) 2024
 * 
 */
#include<iostream>
#include "../../public/_public.h"

CLogFile logfile;

int main(int argc,char* argv[])
{
    
    //参>4
    if(argc!=4)
    {
        //不能
        printf("Example: ./crtsurfdata1 inifile outpath logfile\n");
        printf("Example: ./crtsurfdata1 stcode.ini ./out log.txt\n");

        printf("inifile: 全国气象站点的参数，站点的位置\n");
        printf("outpath: 站点数据生成的位置\n");
        printf("inifile: 日志位置\n");
        return -1;
    }

    //日志文件写东西。打开日志
    if(logfile.Open(argv[3],"a+",false))
    {
        //写日志
        logfile.Write("第一次记录日志\n");
        logfile.WriteEx("第一次记录日志\n");

    }
    else
    {
        //日志失败
        printf("打开日志失败");
        return -1;

    }

    return 0;
}